import React from 'react'

//司机列表
export async function apiGetChauffeurPage(params) {
    return await React.$post('/admin/storeChauffeur/page', params);
}
//司机列表-新增
export async function apiGetChauffeurAdd(params) {
    return await React.$post('/admin/storeChauffeur/add', params);
}
//司机列表-修改
export async function apiGetChauffeurEdit(params) {
    return await React.$post('/admin/storeChauffeur/edit', params);
}
//司机列表-删除
export async function apiGetChauffeurDel(params) {
    return await React.$post('/admin/storeChauffeur/del', params);
}
//车辆列表
export async function apiGetVehiclePage(params) {
    return await React.$post('/admin/storeVehicle/page', params);
}
//车辆新增修改获取司机列表
export async function apiGetChauffeurList(params) {
    return await React.$post('/admin/storeChauffeur/list', params);
}
//车辆列表-新增
export async function apiGetVehicleAdd(params) {
    return await React.$post('/admin/storeVehicle/add', params);
}
//车辆列表-修改
export async function apiGetVehicleEdit(params) {
    return await React.$post('/admin/storeVehicle/edit', params);
}
//车辆列表-删除
export async function apiGetVehicleDel(params) {
    return await React.$post('/admin/storeVehicle/del', params);
}
//行程记录
export async function apiGetMemberTripPage(params) {
    return await React.$post('/admin/memberTrip/page', params);
}
//取消规则
export async function apiGetCancelPage(params) {
    return await React.$post('/admin/strokeCancelConfig/view', params);
}
//取消规则
export async function apiGetCancelAdd(params) {
    return await React.$postJson('/admin/strokeCancelConfig/add/Json', params);
}
//取消原因
export async function apiGetCancelCauseList(params) {
    return await React.$post('/admin/routeCancelCause/list', params);
}
//取消原因-新增
export async function apiGetCancelCauseAdd(params) {
    return await React.$post('/admin/routeCancelCause/add', params);
}
//取消原因-修改
export async function apiGetCancelCauseEdit(params) {
    return await React.$post('/admin/routeCancelCause/edit', params);
}
//取消原因-删除
export async function apiGetCancelCauseDel(params) {
    return await React.$post('/admin/routeCancelCause/del', params);
}

//打车任务列表
export async function apiGetMissionsPage(params) {
    return await React.$post('/admin/petTaxiTask/page', params);
}

//打车任务导出
export async function apiGetMissionsExport(params) {
    return await React.$post('/admin/petTaxiTask/export', params);
}

//打车任务详情
export async function apiGetMissionsDetail(params) {
    return await React.$get(`/admin/petTaxiTask/${params}`);
}

//司机管理-分页
export async function apiPostChauffeurPage(params) {
    return await React.$post('/admin/driverInfo/page', params);
}

//司机管理-详情
export async function apiGetChauffeurDetail(params) {
    return await React.$get(`/admin/driverInfo/${params}`);
}

//司机管理-新增
export async function apiPostChauffeurAdd(params) {
    return await React.$post(`/admin/driverInfo`, params);
}

//司机管理-修改
export async function apiPutChauffeurEdit(params) {
    return await React.$put(`/admin/driverInfo`, params);
}

//司机管理-批量修改状态
export async function apiPutChauffeurBatchUpdateStatus(params) {
    return await React.$put(`/admin/driverInfo/batchUpdateStatus`, params);
}

//车辆管理-分页
export async function apiPostVehiclePage(params) {
    return await React.$post('/admin/carInfo/page', params);
}

//车辆管理-新增
export async function apiPostCarInfo(params) {
    return await React.$post('/admin/carInfo', params);
}

//车辆管理-修改
export async function apiPutCarInfo(params) {
    return await React.$put('/admin/carInfo', params);
}

//车辆管理-详情
export async function apiGetCarInfo(params) {
    return await React.$get(`/admin/carInfo/${params}`);
}

//车辆管理-批量修改状态
export async function apiPutCarInfoBatchUpdateStatus(params) {
    return await React.$put(`/admin/carInfo/batchUpdateStatus`, params);
}

//获取任务配置
export async function apiGetTaskConfig(params) {
    return await React.$get(`/admin/deliveryTaskConfig/getTaskConfig`, params);
}
//新增任务配置
export async function apiPostTaskConfig(params) {
    return await React.$post(`/admin/deliveryTaskConfig`, params);
}
//修改任务配置
export async function apiPutTaskConfig(params) {
    return await React.$put(`/admin/deliveryTaskConfig`, params);
}

//打车订单列表
export async function apiGetTaxiOrder(params) {
    return await React.$post("/admin/petTaxiOrder/page", params)
}

//打车订单详情
export async function apiGetTaxiOrderDetails(params) {
    return await React.$get(`/admin/petTaxiOrder/${params}`)
}